﻿<%@ Page ContentType="application/rss+xml" Language="C#" AutoEventWireup="true" CodeBehind="ChuyenMucTuVan.aspx.cs" Inherits="TanHungViet.Web.Views.Home.ChuyenMucTuVan" %><?xml version="1.0" encoding="utf-8"?>
<%@ Import Namespace="TanHungViet.Web.Models"%>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="TanHungViet.Helper"%>
 <% CultureInfo ci = new CultureInfo(Session["CultureInfo"].ToString());%>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Chuyên Mục Tư Vấn www.tanhungviet.com.vn</title>
       <%
           foreach (TanHungViet.Web.Models.Content item in ViewData.Model.Items)
         {%>
         <item>
            <title><%=Html.Encode(item.ContentTitle)%></title>
            <description><%=Html.Encode(item.BriefDescrip)%></description>
            <link><%=ViewData["DNS"] + Url.Action("ChiTietTuVan", new { code = item.ContentCode })%></link>
            <pubDate><%= item.PublishDate == null ? DateTime.Now.ToString("dd/MM/yyyy", new CultureInfo("vi-Vn"))
			                    : item.PublishDate.Value.ToString("dd/MM/yyyy", new CultureInfo("vi-Vn"))%></pubDate>
        </item>
        <%
          } %>
    </channel>
</rss>
